From f28d00feb2b97941c333816ee6d0c555b46e91d3 Mon Sep 17 00:00:00 2001 From: "tsteven4@gmail.com" Date: Tue, 13 Aug 2013 23:31:45 +0000 Subject: [PATCH] restore native line endings to kml and gpx writers, as with previous releases. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4532 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gpx.cc | 3 +-- gpsbabel/kml.cc | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gpsbabel/gpx.cc b/gpsbabel/gpx.cc index e9c247aab..527d1234a 100644 --- a/gpsbabel/gpx.cc +++ b/gpsbabel/gpx.cc @@ -1362,9 +1362,8 @@ static void gpx_wr_init(const char* fname) { mkshort_handle = NULL; - // QFile requires binary mode on Windows. oqfile = new gpsbabel::File(fname); - oqfile->open(QIODevice::WriteOnly); + oqfile->open(QIODevice::WriteOnly | QIODevice::Text); writer = new gpsbabel::XmlStreamWriter(oqfile); writer->setAutoFormattingIndent(2); diff --git a/gpsbabel/kml.cc b/gpsbabel/kml.cc index 62bc47343..f28e2a516 100644 --- a/gpsbabel/kml.cc +++ b/gpsbabel/kml.cc @@ -437,7 +437,7 @@ kml_wr_init(const char* fname) * Reduce race conditions with network read link. */ oqfile = new gpsbabel::File(fname); - oqfile->open(QIODevice::WriteOnly); + oqfile->open(QIODevice::WriteOnly | QIODevice::Text); writer = new gpsbabel::XmlStreamWriter(oqfile); writer->setAutoFormattingIndent(2); -- 2.30.2